//天地图

//影像
define([
    "dojo/_base/declare"
    , "esri/layers/TiledMapServiceLayer"
    , "esri/SpatialReference"
    , "esri/geometry/Extent"
    , "esri/layers/TileInfo"
], function (declare
    , TiledMapServiceLayer
    , SpatialReference
    , Extent
    , TileInfo) {
    var Ah2017_img_c = declare([TiledMapServiceLayer], {
        constructor: function () {

            this.spatialReference = new SpatialReference({wkid: 4326});
            this.initialExtent = (this.fullExtent = new Extent(114.86487795575317, 29.385666042953574, 119.6548281032345, 34.661303586991004, this.spatialReference));
            this.tileInfo = new TileInfo({
                "rows": 256,
                "cols": 256,
                "compressionQuality": 0,
                "origin": {
                    "x": -180,
                    "y": 90
                },
                "spatialReference": {
                    "wkid": 4326
                },
                "lods": [
                    {"level": 0, "resolution": 1.4078260157100582, "scale": 591657528}
                    , {"level": 1, "resolution": 0.703125, "scale": 2.9582935546E8}
                    , {"level": 2, "resolution": 0.3515625000000001, "scale": 1.4791467774E8}
                    , {"level": 3, "resolution": 0.17578125000000006, "scale": 7.395733887E7}
                    , {"level": 4, "resolution": 0.08789062500000028, "scale": 3.697866944E7}
                    , {"level": 5, "resolution": 0.0439453125, "scale": 1.848933473E7}
                    , {"level": 6, "resolution": 0.021972656250000007, "scale": 9244667.37}
                    , {"level": 7, "resolution": 0.010986328121328567, "scale": 4617149.89}
                    , {"level": 8, "resolution": 0.00549316407256159, "scale": 2308574.95}
                    , {"level": 9, "resolution": 0.0027465820243834896, "scale": 1154287.47}
                    , {"level": 10, "resolution": 0.0013732910240890498, "scale": 577143.74}
                    , {"level": 11, "resolution": 6.866455120445249E-4, "scale": 288571.87}
                    , {"level": 12, "resolution": 3.433227441249574E-4, "scale": 144285.93}
                    , {"level": 13, "resolution": 1.7166138395978374E-4, "scale": 72142.97}
                    , {"level": 14, "resolution": 8.583068008258684E-5, "scale": 36071.48}
                    , {"level": 15, "resolution": 4.291534423799984E-5, "scale": 18035.741763721453}
                    , {"level": 16, "resolution": 2.145767211909992E-5, "scale": 9017.870881902752}
                    , {"level": 17, "resolution": 1.072883605957027E-5, "scale": 4508.935440959912}
                    , {"level": 18, "resolution": 5.364418029785136E-6, "scale": 2254.4677204799564}
                    , {"level": 19, "resolution": 2.682209014892568E-6, "scale": 1127.2338602399782}
                ]
            });
            this.loaded = true;
            this.onLoad(this);
        },
        getTileUrl: function (level, row, col) {
            return `http://mapservice.tdtah.cn/server1/rest/services/DOM2017/MapServer/tile/${level}/${row}/${col}`;
        }
    });
    return Ah2017_img_c;
});